package cn.ilovese.collect.datamapper.workermessage;

import cn.ilovese.collect.po.workermessage.WorkerMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkerMessageMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByFromUserIdAndReportId(@Param("uid")Integer uid, @Param("reportId")Integer reportId,@Param("cooId")Integer cooId);

    int deleteByFromUserIdAndReportIdAndWorker(@Param("uid")Integer uid, @Param("reportId")Integer reportId);

    int deleteByFromUserIdAndReportIdAndBoss(@Param("uid")Integer uid, @Param("reportId")Integer reportId);

    int deleteByFromUserIdAndReportIdAndLike(@Param("uid")Integer uid, @Param("touid")Integer touid, @Param("reportId")Integer reportId);

    int deleteFollowMessage(@Param("fromuid") Integer fromuid,@Param("touid") Integer touid);

    int insert(WorkerMessage record);

    int insertSelective(WorkerMessage record);

    WorkerMessage selectByPrimaryKey(Integer id);

    List<WorkerMessage> selectByToUserId(Integer uid);

    int updateByPrimaryKeySelective(WorkerMessage record);

    int updateByPrimaryKey(WorkerMessage record);

    int countStatus(@Param("status")Integer status,@Param("uid")Integer uid);

}